<?php
require_once("ESSearch.php");

$service = new ESSearch();
$result = $service->search($_GET['q']);
//$result = $service->search('camels');
//print_r($result);
foreach( $result->results as $item ){
	print "<pre>";
	print_r($item);
print "</pre><img src=http://cmeclient.is.marist.edu/ESSearchApplication/".$item->documentURI.">";
}
